﻿@using Framework.Util.Helpers
@model IEnumerable<Project.Domain.Entities.BetDetail>
@{
    var scoreHome = (string) ViewBag.ScoreHome;
    var scoreAway = (string) ViewBag.ScoreAway;
}
<div class="ClearAll"></div>
<div style=" text-align:left;padding-left: 5px; padding-top:3px; float:left; width:100%; color: #FF9200 !important">
    <span>@Html.Slip(scoreHome.ToString()):@Html.Slip(scoreAway.ToString())</span>
</div>     
     @foreach (var betHandicap in Model)
     {
         switch (betHandicap.Type)
         {
             case 1:
                 {
                     <div class="wrap_listbetExactScore_item" style="float: left; margin-top: 5px;">
                         <div class="betbtnsofbet" onclick="gameplus_addSlip(@betHandicap.BetDetailId)" style="width: 143px !important;" id="@betHandicap.BetDetailId">
                             <span class="float_right" >@Html.Slip(betHandicap.OddsHome.ToString())   
                             </span>                   
                             @betHandicap.Bet.Match.HomeTeam.TeamName
                         </div>        
                     </div>
                     break;
                 }
             case 2:
                 {
                     <div class="wrap_listbetExactScore_item" style="float: left; margin-top: 5px;">
                         <div class="betbtnsofbet" onclick="gameplus_addSlip(@betHandicap.BetDetailId)" style="width: 143px !important;" id="@betHandicap.BetDetailId">
                             <span class="float_right">
                                 @Html.Slip(betHandicap.OddsDraw.ToString())
                             </span>Draw
                         </div>       
                     </div>
                     break;
                 }
             default:
                 {
                     <div class="wrap_listbetExactScore_item" style="float: left; margin-top: 5px;">
                         <div class="betbtnsofbet" onclick="gameplus_addSlip(@betHandicap.BetDetailId)"  style="width: 143px !important;" id="@betHandicap.BetDetailId">
                             <span class="float_right">
                                 @Html.Slip(betHandicap.OddsAway.ToString())
                             </span>@betHandicap.Bet.Match.AwayTeam.TeamName
                         </div>      
                     </div>
                     break;
                 }
         }
         }

